<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get"  autocomplete="off">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">客户编号</label>
            <div class="layui-input-inline">
                <input name="unique" value="{$Think.get.unique|default=''}" placeholder="请输入客户编号" class="layui-input">
            </div>          
        </div>
        <div class="layui-form-item layui-inline">
        	<label class="layui-form-label">公司名称</label>
            <div class="layui-input-inline">
                <input name="company_name" value="{$Think.get.company_name|default=''}" placeholder="请输入公司名称" class="layui-input">
            </div>
        </div>
        
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">客户类型</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="post_type">
                    {foreach $post_type_op as $k=>$v}
                    {eq name='Think.get.post_type' value='$k.""'}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/eq}
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">国家</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="country">
                    {foreach $country_op as $k=>$v}
                    {eq name='Think.get.country' value='$k.""'}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/eq}
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">来源渠道</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="source_type">
                    {foreach $source_type_op as $k=>$v}
                    {eq name='Think.get.source_type' value='$k.""'}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/eq}
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">意向程度</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="intention_level">
                    {foreach $intention_level_op as $k=>$v}
                    {eq name='Think.get.intention_level' value='$k.""'}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/eq}
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">首触时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="first_contact_at" value="{$Think.get.first_contact_at|default=''}" placeholder="请选择首触时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">最后跟进时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="last_follow_at" value="{$Think.get.last_follow_at|default=''}" placeholder="请选择最后跟进时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">进入公海时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="last_sea_at" value="{$Think.get.last_sea_at|default=''}" placeholder="请选择进入公海时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择创建时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
        <input type="hidden" name="page" class="page" value="1">
    </form>
</fieldset>

<script>form.render()</script>
